package com.example.qxfw.mongodb.hy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.io.Serializable;

@Data
@Document(collection = "pdf_file")
public class HyPdfFile implements Serializable {
    @TableId(type = IdType.ASSIGN_UUID)
    private String _id;
    private byte[] data;
    private String name;
    @Field("id")
    private String id;
    private String table_name;
}
